package dfsketches.gas;

public class Gas {
	int x;
	int y;
	int z;
	int mat;
	int c;
	public Gas(int x, int y, int z, int mat, int c) {
		this.x = x;
		this.y = y;
		this.z = z;
		this.mat = mat;
		this.c = c;
	}
	
	@Override
	public int hashCode() {
		return (mat << 24) ^ (x << 16) ^ (y << 8) ^ z;
	}
	
	@Override
	public boolean equals(Object o) {
		if (o instanceof Gas) {
			Gas g = (Gas)o;
			return g.x == x && g.y == y && g.z == z && g.mat == mat;
		} else
			return false;
	}
}
